RemoveLinkSource
The RemoveLinkSource method removes the specified link-source object from this draft.
void RemoveLinkSource (in ODLinkSource link);
link
- A reference to the link-source object to be removed.
DISCUSSION
OpenDoc calls this method internally; parts, the document shell, and container applications do not call this method.When this method is called, the reference count of the specified link-source object must be 1, and this draft's current permissions must provide write access.
If this method executes successfully, it marks this draft as dirty. The specified link-source object is no longer a valid object, and this draft no longer contains a link-source object with the corresponding ID.
EXCEPTIONS
kODErrRefCountGreaterThanZero
- After the specified link-source object was released, its reference count was greater than 0.
kODErrRefCountNotEqualOne
- The reference count of the specified link-source object's storage unit is not 1.
SEE ALSO
TheODDraft::AcquireLinkSource
method (page 155).
TheODLinkSource
class (page 371).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help